﻿using System.ComponentModel.DataAnnotations;
using Hicap.AuthorizationServer.Core.Models.Base;
using Hicap.AuthorizationServer.Core.Models.Base.Const;

namespace Hicap.AuthorizationServer.Core.Models.Sys
{
    public class Company : EntityBase
    {
        /// <summary>
        /// 公司id
        /// </summary>
        [Required]
        [StringLength(EntityLengthConst.MediumCode)]
        public string CompanyCode { get; set; }

        /// <summary>
        /// 公司Name
        /// </summary>
        [Required]
        [StringLength(EntityLengthConst.MediumName)]
        public string CompanyName { get; set; }

        /// <summary>
        /// 公司Name
        /// </summary>
        [Required]
        public int? CompanyType { get; set; }

        /// <summary>
        /// 是否认证
        /// </summary>
        public bool IsCertified { get; set; }

        /// <summary>
        /// 营业执照
        /// </summary>
        [Required]
        [StringLength(EntityLengthConst.MediumCode)]
        public string License { get; set; }
    }
}